//
//  LJJBaseViewController.h
//  shopTest
//
//  Created by 梁佳佳 on 2016/11/14.
//  Copyright © 2016年 梁佳佳. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^requestSuccessBlock)(id responseObject);
typedef void(^requestErrorBlock)(NSError *error);

@interface LJJBaseViewController : UIViewController

- (void)getData:(NSString *)url param:(NSDictionary *)param success:(requestSuccessBlock)returnSuccess error:(requestErrorBlock)returnError;
- (void)postData:(NSString *)url param:(NSDictionary *)param success:(requestSuccessBlock)returnSuccess error:(requestErrorBlock)returnError;
- (void)showTostMessage:(NSString *)tost;

@end
